/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package inputoutput;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;


/**
 *
 * @author anh_yeu_em_nhieu_lam
 */
public class ReadTextFromFileOutJar {

    public ReadTextFromFileOutJar() {
        try {
            FileInputStream file = new FileInputStream("data/textout.txt");
            String tu = "";
            int ch;
            while ((ch = file.read()) != -1) {
                tu+=String.valueOf((char)ch);
            }
            System.out.print(tu);
        } catch (IOException ex) {
            Logger.getLogger(ReadTextFromFileOutJar.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    public static void main(String arg[]){
        new ReadTextFromFileOutJar();
    }
}
/*
this is a text ^^!
 * */